import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../views/HomePage.vue'
import NoticePage from '../views/NoticePage.vue'
import NoticeDetail from '../views/NoticeDetail.vue'
import PlatformPage from '../views/PlatformPage.vue'
import PlatformDetail from '../views/PlatformDetail.vue'
import PolicyPage from '../views/PolicyPage.vue'
import PolicyDetail from '../views/PolicyDetail.vue'
import ViolationsPage from '../views/ViolationsPage.vue'
import ViolationsDetail from '../views/ViolationsDetail.vue'

import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs'


const routes = [
  { path: '/', component: HomePage },
  { path: '/notice', component: NoticePage },
  { path: '/notice/:id', component: NoticeDetail },
  { path: '/platform',component:PlatformPage},
  { path: '/platform/:id',component:PlatformDetail},
  { path: '/policy',component:PolicyPage},
  { path: '/policy/:id',component:PolicyDetail},
  { path: '/violations',component:ViolationsPage},
  { path: '/violations/:id',component:ViolationsDetail},
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router